Instantiate contextual types for return expressions#32386
Conversation
|
@typescript-bot run dt |
|
Heya @ahejlsberg, I've started to run the parallelized Definitely Typed test suite on this PR at 6f637b0. You can monitor the build here. It should now contribute to this PR's status checks. |
|
Heya @ahejlsberg, I've started to run the extended test suite on this PR at 6f637b0. You can monitor the build here. It should now contribute to this PR's status checks. |
|
DT test failures look like preexisting conditions unrelated to this PR. RWC tests have one failure that boils down to this: declare function foo<T>(x: T | Promise<T>): void;
declare let b: false | Promise<true>;
foo(b); // ErrorWe fail to infer |
|
Verified that there are no differences in RWC tests between this and the master branch. |
|
So, now that #32460 is in and RWC is clean, I'm going to merge this. |
Fixes #32349.